2 using System.Collections.Generic;
5 using Microsoft.Xna.Framework;
6 using Microsoft.Xna.Framework.Graphics;
8 namespace SuperPolarity
10 class TitleScreen : Screen
12 protected Texture2D TitleImage;
14 public TitleScreen(SuperPolarity newGame) : base(newGame) {}
16 public override void LoadContent()
19 TitleImage = Game.Content.Load<Texture2D>("Graphics\\polaritydemotitle");
20 InputController.Bind("pause", HandleStart);
23 public void HandleStart(float value)
25 if (!Active) { return; }
27 var gameScreen = new GameScreen(Game);
28 gameScreen.Initialize();
29 ScreenManager.Push(gameScreen);
32 public override void CleanUp()
38 public override void Draw(SpriteBatch spriteBatch)
40 base.Draw(spriteBatch);
41 spriteBatch.Draw(TitleImage, new Vector2(0, 0), Color.White);
44 public override void Update(GameTime gameTime)
46 base.Update(gameTime);
47 InputController.UpdateInput(false);